#!/usr/bin/env python3

def main():
    #  data = [69, 69, 45, 10, 25, 25, 10, 45, 20, 17]
    data = []
    i = 1
    while i <= 10:
        num = input("input Num[%d]: " % i)
        if not num:
            continue
        data.append(int(num))
        i += 1

    m = -1
    sec = -1
    for n in data:
        #  count = 0
        #  for i in data:
            #  if n == i:
                #  count += 1

        #  if count > 1:
        if data.count(n) > 1:
            continue

        if n > m:
            sec = m
            m = n
        elif n != m and n > sec:
            sec = n

    print(data)
    print("max = ", m, ", sec = ", sec)


if __name__ == "__main__":
    main()
